/fckeditor/editor/filemanager/connectors/php/util.php

Description
Functions
ConvertToXmlAttribute (line 37)
void ConvertToXmlAttribute (mixed $value)
DetectHtml (line 87)

Detect HTML in the first KB to prevent against potential security issue with IE/Safari/Opera file type auto detection bug.

Returns true if file contain insecure HTML code at the beginning.

boolean DetectHtml (string $filePath)
  • string $filePath: absolute path to file
IsHtmlExtension (line 65)

Check whether given extension is in html etensions list

boolean IsHtmlExtension (string $ext, array $htmlExtensions)
  • string $ext
  • array $htmlExtensions
IsImageValid (line 150)

Check file content.

Currently this function validates only image files. Returns false if file is invalid.

boolean IsImageValid (string $filePath, string $extension, integer $detectionLevel)
  • string $filePath: absolute path to file
  • string $extension: file extension
  • integer $detectionLevel: 0 = none, 1 = use getimagesize for images, 2 = use DetectHtml for images
RemoveFromEnd (line 31)
void RemoveFromEnd (mixed $sourceString, mixed $charToRemove)
RemoveFromStart (line 25)
void RemoveFromStart (mixed $sourceString, mixed $charToRemove)

Documentation generated on Thu, 04 Sep 2008 16:15:32 +0400 by phpDocumentor 1.3.0RC3